package com.xnewtech.xplatform.swan.dataSourceManage.core.error;

import com.xnewtech.xplatform.swan.model.enums.exp.AbstractBaseException;

/**
 * 所有业务异常的枚举
 *
 * @author xnew
 * @Date 2019/9/26 19:07
 */
public enum DemoExceptionEnum implements AbstractBaseException {
    
    /**
     * 错误枚举
     */
    DEMO_NULL(500, "没有内容"),
    DEMO_ERROR(500, "内部异常");
    
    
    DemoExceptionEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
    
    private Integer code;
    
    private String message;
    
    @Override
    public Integer getCode() {
        return null;
    }
    
    @Override
    public String getMessage() {
        return null;
    }
}
